// PortIO.c
#include <avr/io.h>

int main (void)
{
	// Set port data direction registers
	DDRB = 0x00;  // PORTB set to input
	DDRD = 0xFF;  // PORTD set to output

	PORTB = 0xFF; // enable pull up on input port

	while(1)
	{
		PORTD = PINB;
	}
}
